<!DOCTYPE html>
<html>

	<head>
		<meta charset="UTF-8">
		<meta name="viewport" content="width=device-width,initial-scale=1,minimum-scale=1,maximum-scale=1,user-scalable=no" />
		<meta name="apple-mobile-web-app-capable" content="yes">
		<meta name="apple-mobile-web-app-status-bar-style" content="black">
		<title></title>
		<link rel="stylesheet" type="text/css" href="../css/mui.min.css" />
		<link rel="stylesheet" type="text/css" href="../css/mui.indexedlist.css" />
		<link rel="stylesheet" type="text/css" href="../css/common.css" />
		<style>
			html,
			body {
				height: 100%;
				overflow: hidden;
			}
			
			.mui-bar {
				-webkit-box-shadow: none;
				box-shadow: none;
			}
			
			.mui-indexed-list-bar {
				background-color: transparent;
			}
			
			.mui-indexed-list-bar.active {
				background-color: #efeff4;
			}
			
			.mui-indexed-list-bar a {
				color: #BBBBBB;
			}
			
			.mui-indexed-list-bar.active a {
				color: #666666;
			}
			
			.mui-indexed-list-bar.active a.active {
				color: #F6047F;
			}
			
			.mui-input-row input {
				border: none;
				background-color: #FFFFFF;
			}
			
			.mui-indexed-list-alert {
				color: #F6047F;
				background-color: #fff;
				border: 1px solid #F6047F;
			}
		</style>
	</head>

	<body>
		<header class="mui-bar mui-bar-nav">
			<a class="mui-action-back mui-icon mui-icon-left-nav mui-pull-left"></a>
			<h1 class="mui-title">选择城市</h1>
		</header>

		<div class="mui-content">
			<div id='list' class="mui-indexed-list">
				<div class="mui-indexed-list-search mui-input-row mui-search">
					<input type="text" class="mui-input-clear mui-indexed-list-search-input " placeholder="搜索城市">
				</div>
				<div class="mui-indexed-list-bar">
					<a>A</a>
					<a>B</a>
					<a>C</a>
					<a>D</a>
					<a>E</a>
					<a>F</a>
					<a>G</a>
					<a>H</a>
					<a>I</a>
					<a>J</a>
					<a>K</a>
					<a>L</a>
					<a>M</a>
					<a>N</a>
					<a>O</a>
					<a>P</a>
					<a>Q</a>
					<a>R</a>
					<a>S</a>
					<a>T</a>
					<a>U</a>
					<a>V</a>
					<a>W</a>
					<a>X</a>
					<a>Y</a>
					<a>Z</a>
				</div>
				<div class="mui-indexed-list-alert"></div>
				<div class="mui-indexed-list-inner">
					<div class="mui-indexed-list-empty-alert">没有数据</div>
					<ul class="mui-table-view" id="cityList"></ul>
				</div>
			</div>
		</div>
		<script src="../js/mui.min.js"></script>
		<script src="../js/user.js" type="text/javascript" charset="utf-8"></script>
		<script src="../js/mui.indexedlist.js"></script>
		<script src="../js/common.js" type="text/javascript" charset="utf-8"></script>
		<script type="text/javascript" charset="utf-8">
			mui.plusReady(function() {
				mui.init();
				var header = document.querySelector('header.mui-bar');
				var list = document.getElementById('list');
				//calc height
				list.style.height = (document.body.offsetHeight - header.offsetHeight) + 'px';
				//create
				window.indexedList = new mui.IndexedList(list);
				mui('.mui-table-view').on('click', '.mui-indexed-list-item', function() {
					//向compile-my-moreinfo.html / index.html页面传值
					mui.fire(plus.webview.currentWebview().opener(), 'changeCity', {
						city : this.innerHTML
					});
					mui.back();
				})
			});
			
		</script>
	</body>

</html>